package com.sqnu.service.impl;

import com.sqnu.dao.AccountDao;
import com.sqnu.service.AccountService;

public class AccountServiceImpl implements AccountService {
    private AccountDao accountDao;

    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }

    @Override
    public void transfer(String outName, String inName, double money) {
        accountDao.updateSubMoneyByName(outName,money);

        accountDao.updateAddMoneyByName(inName,money);
    }
}
